import routes from 'server/route/index';
import utils from 'server/core/utils';
import {
    totalConfig,
    totalConfigById,
    propName
} from 'server/config/templateConfig';

routes.setNotLogin('getErrMap', null, (msg, cb) => {
    cb(0, routes.errMap)
}, {
    101: '数据库错误',
    102: '参数错误',
    103: '请求不存在',
    104: '请求不是post',
    105: '用户未登陆',
    106: '角色未登陆',
    107: '背包空间不足'
});

routes.setNotLogin('getConfig', null, (msg, cb) => {
    cb(0, {
        totalConfig: totalConfig,
        propName: propName,
        totalConfigById: totalConfigById
    });
});